
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

京东云数据库MongoDB接口
数据库MongoDB相关接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKMongodb/MongodbExecutor.h>


/// 变更实例规格
@implementation  MongodbModifyInstanceSpecExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances/{instanceId}:modifyInstanceSpec";
    return self;
}
@end

/// 创建实例
@implementation  MongodbCreateInstanceExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances";
    return self;
}
@end

/// 获取备份策略
@implementation  MongodbDescribeBackupPolicyExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/instances/{instanceId}/backupPolicy";
    return self;
}
@end

/// 查询实例访问白名单
@implementation  MongodbDescribeSecurityIpsExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/instances/{instanceId}/securityIps";
    return self;
}
@end

/// 获取备份下载链接
@implementation  MongodbBackupDownloadURLExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/backups/{backupId}/downloadURL";
    return self;
}
@end

/// 查询实例信息
@implementation  MongodbDescribeInstancesExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/instances";
    return self;
}
@end

/// 删除实例
@implementation  MongodbDeleteInstanceExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/regions/{regionId}/instances/{instanceId}";
    return self;
}
@end

/// 数据恢复
@implementation  MongodbRestoreInstanceExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances/{instanceId}/restoreInstance";
    return self;
}
@end

/// 获取规格
@implementation  MongodbDescribeFlavorsExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/flavors";
    return self;
}
@end

/// 重置密码
@implementation  MongodbResetPasswordExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances/{instanceId}:resetPassword";
    return self;
}
@end

/// 创建备份
@implementation  MongodbCreateBackupExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/backups";
    return self;
}
@end

/// 修改备份策略
@implementation  MongodbModifyBackupPolicyExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances/{instanceId}/backupPolicy";
    return self;
}
@end

/// 修改实例名称
@implementation  MongodbModifyInstanceNameExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances/{instanceId}:modifyInstanceName";
    return self;
}
@end

/// 修改实例访问白名单
@implementation  MongodbModifySecurityIpsExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances/{instanceId}/securityIps";
    return self;
}
@end

/// 获取可用区
@implementation  MongodbDescribeAvailableZonesExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/availableZones";
    return self;
}
@end

/// 查看备份
@implementation  MongodbDescribeBackupsExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/backups";
    return self;
}
@end

/// 删除备份
@implementation  MongodbDeleteBackupExecutor

-(id) initWithJDCloudClient:(MongodbClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"DELETE";
    self.url = @"/regions/{regionId}/backups/{backupId}";
    return self;
}
@end
